package com.yips.service;

import com.yips.domain.entity.SysUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

/**
* @author Gralt of Rivia
* @desc 针对表【sys_user】的数据库操作Service
*  2022-05-08 11:15:38
*/
public interface SysUserService extends IService<SysUser> {

    /**
     * 通过用户名查询用户
     * @param username
     * @return
     */
    SysUser selectUserByUserName(String username);

    /**
     * 校验用户名是否唯一
     * @param username
     * @return
     */
    String checkUserNameUnique(String username);

    /**
     * 用户注册方法
     * @param sysUser
     * @return
     */
    boolean registerUser(SysUser sysUser);
}
